﻿@model IEnumerable<CodeSaude.Application.ViewModels.LocalAtendimentoViewModel>

    @{
        ViewBag.Title = "Index";
        Layout = "~/Views/Shared/_Layout.cshtml";
    }

<div style="margin: 0 0 10px 0; text-align: right;">
    <button class="btn btn-success btn-sm" style="font-weight: bold;" id="btnInserir"> + Novo Local</button>
</div>

<div style="margin: 10px 0 0 0;">
    <table id="tbAlergia" class="table table-bordered table-striped">
        <thead>
            <tr>
                <th>Nome</th>
                <th>Ip Som</th>
                <th>Porta Som</th>
                <th>Ip Vídeo</th>
                <th>Porta Vídeo</th>
                <th>Ações</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.NomeLocal)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.IpSomLocal)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.PortaSomLocal)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.IpVideoLocal)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.PortaVideoLocal)
                    </td>
                    <td style="width: 20%">
                        <button class="btn btn-primary btn-xs" data-title="Edit" data-id="@item.LocalAtendimentoId"><span class="glyphicon glyphicon-pencil"></span>&nbsp;Editar</button>
                        <button class="btn btn-danger btn-xs" data-target="#delete-modal" data-title="Delete" data-id="@item.LocalAtendimentoId"><span class="glyphicon glyphicon-trash"></span>&nbsp;Excluir</button>
                    </td>
                </tr>
            }
        </tbody>
    </table>

    <div class="modal" id="modal"></div>
</div>



@Scripts.Render("~/Scripts/Entities/LocalAtendimento/LocalAtendimento.js")

